import request from "@/utils/requset.js"

export const apis = {
  query: (params) => {
    return request({
      url: "/preventionPlanTask/list",
      method: "get",
      params,
    })
  },
  update: (data) => {
    return request({
      url: "/preventionPlanTask/update",
      method: "post",
      data: data,
    })
  },
  detail: (data) => {
    return request({
      url: "/preventionPlanTask/" + data,
      method: "get",
    })
  },
  updateTaskState: (data) => {
    return request({
      url: "/preventionPlanTask/completeTask",
      method: "post",
      data: data,
    })
  }
}
